import {request} from '@@/plugin-request';
import {MenuInterface} from '@/types/interface/menu.interface';

export function getMenu() {
    return request<Array<MenuInterface>>('/umi-admin/menu', {
        method: 'GET',
        headers: {'Content-Type': 'application/json'},
        skipErrorHandler: false  //是否走全局的错误拦截 默认false
    });
}
